import Vue from 'vue'
import App from './App.vue'
import router from './router'
// import http from './util/http.js'
import VueLazyload from 'vue-lazyload'
import VueCookie from 'vue-cookie'
import store from './store/index.js'
// import env from './env'
import './element/element.js'
import 'element-ui/lib/theme-chalk/index.css'
// import { Message } from 'element-ui'
import baseURL from './util/baseUrl'

// mockjs开关
const mock = false
if (mock) {
  require('./mock/api')
}

Vue.config.productionTip = false
Vue.use(VueLazyload, {
  loading: '/imgs/loading-svg/loading-bars.svg'
})
Vue.use(VueCookie)
new Vue({
  router,
  store,
  render: h => h(App),
}).$mount('#app')
